package org.rcy.framework.security.principal;

import org.rcy.framework.api.security.SecurityUser;
import org.rcy.framework.api.security.UserPrincipal;

import java.io.Serializable;

/**
 * 可用于对接第三方登录
 * @param <P>
 */
public interface UserProvider<P extends Serializable> {
    SecurityUser loadUser(P principal);

    UserPrincipal postLoadUser(SecurityUser securityUser);
}
